/**
 * @product: SOD
 * @copyright: FSAI-南征北战信息科技
 * @filename: com.sod.entity.EntityCons.java
 *
 * @link: Http://www.fastsai.com
 * @jdkv: Jdk 1.8
 */
package com.fsai.cms.base;

/**
 * 全局常量
 * 
 * @project: sod-entity
 *
 * @author: JaffeHe
 * @email: JaffeHe@foxmail.com
 * @date: 2020-04-23 11:12
 *
 * @ChangeLog<br/>
 * 				Developer Date Comment <br/>
 */
public class WebCons {

	/**
	 * SESSION上名称
	 */
	public static final String SESSION_USER = "APPUSER";

	/**
	 * 执行成功
	 */
	public static final int SUCCESS_RESP_CODE = 100;

	/**
	 * 执行失败
	 */
	public static final int ERROR_RESP_CODE = 200;

	/**
	 * 后台异常错误
	 */
	public static final int SERVER_ERROR_CODE = 500;

	/**
	 * MD5加盐，混合算法
	 */
	public static final String MD5_SALT = "N1S2O3D";

	/**
	 * MD5加密次数
	 */
	public static final int MD5_TIMES = 2;

	/**
	 * redis前缀
	 */
	public static final String REDIS_PREFIX = "cms:";

	/**
	 * redis-APP前缀
	 */
	public static final String REDIS_APP_PREFIX = "cms:pcdc:";

	/**
	 * 可用状态
	 */
	public static final String STATUS_Y = "0";

	/**
	 * 不可用状态
	 */
	public static final String STATUS_N = "1";

	/**
	 * 子机构属性
	 */
	public static final String SUB_ORG_TYPE = "sub";
}
